import request from '@/utils/request'

/**
* 操作类型点位详情配置分页查询
* @param {查询条件} data
*/
export function listOperationPointConfig(query) {
  return request({
    url: 'formula/operationpointconfig/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增操作类型点位详情配置
* @param data
*/
export function addOperationPointConfig(data) {
  return request({
    url: 'formula/operationpointconfig',
    method: 'post',
    data: data,
  })
}
/**
* 修改操作类型点位详情配置
* @param data
*/
export function updateOperationPointConfig(data) {
  return request({
    url: 'formula/operationpointconfig',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取操作类型点位详情配置详情
* @param {Id}
*/
export function getOperationPointConfig(id) {
  return request({
    url: 'formula/operationpointconfig/' + id,
    method: 'get'
  })
}

/**
* 删除操作类型点位详情配置
* @param {主键} pid
*/
export function delOperationPointConfig(pid) {
  return request({
    url: 'formula/operationpointconfig/delete/' + pid,
    method: 'delete'
  })
}
